package cn.tedu.csmall.product.mapper;

import cn.tedu.csmall.product.pojo.entity.Spu;
import cn.tedu.csmall.product.pojo.vo.SpuVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SpuMapper {
    int insert(Spu spu);

    int insertBatch(List<Spu> spuList);

    SpuVO standardById(Long id);

    List<SpuVO> list();

    int countByAlbum(Long albumId);

    int countByBrand(Long brandId);

    int countByCategory(Long categoryId);

    int countByAttributeTemplate(Long templateId);
}
